

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class FstPropertyFile {
	
	public static Properties pro=null;
	public static void main(String args[]) throws IOException{
		
		pro= new Properties();
		pro.setProperty("MyName", "Amandeep");
		FileWriter newFile = new FileWriter("Obj.properties");
		pro.store(newFile, "training");
		newFile.close();
	}

}
